
package Server;

import java.util.ArrayList;
import java.util.Observable;

public class DatabaseInterface extends Observable implements Runnable{
    private boolean updated = false;

    public void recieveRequest(ArrayList<String> request){
        if(request.get(1).equals("log")){
            updated = true;
        }
    }
    
    public void run()
    {
        if (updated){
            final String response = "response";
            setChanged();
            notifyObservers( response );
        }
    }
}

